const resuMod = require('../model/resumeMod')

const resuServ = {
  resuStatusServ: async (id) => {
    const res = await resuMod.resuStatusMod(id)
    return res[0]
  },
  sendReStatuServ: async (params) => {
    let res = await resuMod.sendReStatuMod(params)
    return {sStatus : res}
  },
  deleteDeliverServ: async (id) => {
    await resuMod.deleteDeliverMod(id)
  },
  updateResuStatusServ: async (params) => {
    await resuMod.updateResuMod(params)
  },
  sendResumeServ: async (params) => {
    await resuMod.sendResumeMod(params)
  },
  receResuServ: async (userId) => {
    const res = await resuMod.receResuMod(userId)
    return res
  },
  deliverResuServ: async (userId) => {
    const res = await resuMod.deliverResuMod(userId)
    return res
  },
}

module.exports = resuServ